package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @FileName: DepartmentRepository
 * @Author Steven
 * @Date: 2021/3/18
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department,String>{
    /**
     * 通过hosCode和depCode查询返回部门信息
     * @param hosCode
     * @param depCode
     * @return
     */
    Department getDepartmentByHoscodeAndDepcode(String hosCode,String depCode);
}
